package com.example.pandaso.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.example.pandaso.engines.BaseEngine;
import com.example.pandaso.engines.extend.BaiduEngine;
import com.example.pandaso.engines.extend.BingEngine;
import com.example.pandaso.engines.extend.DuckgoEngine;
import com.example.pandaso.engines.extend.GoogleEngine;
import com.example.pandaso.engines.extend.SougoEngine;

@Configuration
public class EngineConfig{
    @Bean(name = "google")
    public BaseEngine googleEngine(){
        return new GoogleEngine();
    }
    @Bean(name = "bing")
    public BaseEngine bingEngine(){
        return new BingEngine();
    }
    @Bean(name = "baidu")
    public BaseEngine baiduEngine(){
        return new BaiduEngine();
    }
    @Bean(name = "sougou")
    public BaseEngine sougouEngin(){
        return new SougoEngine();
    }
    @Bean(name = "duckduckgo")
    public BaseEngine duckEngine(){
        return new DuckgoEngine();
    }
}
